package homework;

public class StringReverse {
  char[] str={'s','t','r','i','n','g'}; 
  int len=str.length;
  
	void reversemeth()
	{
		for(int i=len-1;i>=0;i--)
		{
			System.out.print(str[i]);
			
			
		}
	}
	
	public static void main(String args[])
	{
		StringReverse sob=new StringReverse();
		sob.reversemeth();
		
		
	}
	
	
}
